
cc.Class({
    extends: cc.Component,

    properties: {
        sex:cc.Sprite,
        male:cc.SpriteFrame,
        female:cc.SpriteFrame,
        meName:cc.Label,
        id:cc.Label,
        gems:cc.Label
    },
    start () {
        this.sex.spriteFrame = game.user.role.sex == 0 ? this.male : this.female;
        this.meName.string = game.user.role.name;
        this.id.string = game.user.role.uid;
        this.gems.string = game.user.role.gems;
    },

    
});
